import { httppost } from "@/plugins/request/getSignRequest"

//生成订单
export function generateOrder(data) {
  return httppost({
    URL: "/shop/good/generateOrder",
    JSONStr:data,
    sign: "WuHanBenSenCoLid"
  })
}
//获取商品信息
export function getGoodInfoList(data) {
  return httppost({
    URL: "/shop/good/getGoodInfoList",
    JSONStr:data,
    sign: "WuHanBenSenCoLid"
  })
}

//获取商品详情
export function getGoodDetail(data) {
  return httppost({
    URL: "/shop/good/getGoodDetail",
    JSONStr:data,
    sign: "WuHanBenSenCoLid"
  })
}
//生成订单列表
export function getGoodOrderList(data) {
  return httppost({
    URL: "/shop/good/getGoodOrderList",
    JSONStr:data,
    sign: "WuHanBenSenCoLid"
  })
}
//更新订单
export function bindPostAndCode(data) {
  return httppost({
    URL: "/shop/site/bindPostAndCode",
    JSONStr:data,
    sign: "WuHanBenSenCoLid"
  })
}
//打印小票
export function getPrintOrderServiceInfo(data) {
  return httppost({
    URL: "/shop/good/getPrintOrderServiceInfo",
    JSONStr:data,
    sign: "WuHanBenSenCoLid"
  })
}

// 获取字典列表
export function getDictionaryList(data) {
  return httppost({
    URL: "/shop/dictionary/getDictionaryList",
    JSONStr:data,
    sign: "WuHanBenSenCoLid"
  })
}
//查询我的历史借阅
export function getGoodOrderByName(data) {
  return httppost({
    URL: "/shop/good/getGoodOrderByName",
    JSONStr:data,
    sign: "WuHanBenSenCoLid"
  })
}
//关闭订单（共享书屋）
export function completionOrder(data) {
  return httppost({
    URL: "/shop/good/completionOrder",
    JSONStr:data,
    sign: "WuHanBenSenCoLid"
  })
}
//按站点名称模糊查询
export function getPostSiteList(data) {
  return httppost({
    URL: "/shop/site/getPostSiteList",
    JSONStr:data,
    sign: "WuHanBenSenCoLid"
  })
}
//人脸识别
export function compareFace(data) {
  return httppost({
    URL: "/shop/facial/compareFace",
    JSONStr:data,
    sign: "WuHanBenSenCoLid"
  })
}
//查询订单列表
export function getServiceOrderList(data) {
  return httppost({
    URL: "/shop/order/getServiceOrderList",
    JSONStr:data,
    sign: "WuHanBenSenCoLid"
  })
}
//用户版本修改
export function updateUserVersions(data) {
  return httppost({
    URL: "/shop/user/updateUserVersions",
    JSONStr:data,
    sign: "WuHanBenSenCoLid"
  })
}
//用户取消订单
export function updateServiceOrderUser(data) {
  return httppost({
    URL: "/shop/order/updateServiceOrderUser",
    JSONStr:data,
    sign: "WuHanBenSenCoLid"
  })
}
//查询各站点后台管理图标
export function getSiteOrderBackList(data) {
  return httppost({
    URL: "/shop/order/getSiteOrderBackList",
    JSONStr:data,
    sign: "WuHanBenSenCoLid"
  })
}
